export function getImageUrl(name: string | number, pre: string | number | null = '') {
  return new URL(`/src/assets/images/${pre}/${name}`, import.meta.url).href;
}

export const getSuffix = (name: string): string => {
  return name.substring(name.lastIndexOf('.') + 1); //txt
};
